import Model from '../index'

class Login extends Model {

  // 登录
  toLogin (options) {
    options.url = '/api/fontend/sign/toLogin'
    return this.post(options)
  }

  // 注册
  userRegister (options) {
    options.url = '/api/fontend/sign/userRegister'
    return this.post(options)
  }

}

const loginModel = new Login()
export default loginModel
